package com.classic.content;

import android.graphics.drawable.Drawable;

import com.classic.duanzhi.R;

public class contents {

    /**
     * 广点通ID
     */
    public static String APPNAME = "";
    /**
     * 趣赢ID
     */
    public static String QY_ID = "06c25feb859d40d242ab122bad2366bb";

    /**
     * 原生广告之列表广告 - 1
     */
    public static Drawable appLogo;

    /**
     * 段子URL
     */
    public static String url = "http://duanziwang.com/";
//    public static String url = "http://www.haha56.net/";
    public static String url_music = "https://www.13400.com/allmp3/index小苹果.html";
    public static String url_details_music = "https://www.13400.com";
    public static String url_search_music = "https://www.13400.com/search.php?keyword=小苹果&x=0&y=0";


    /**
     * 加载广告的条数，取值范围为[1, 10]
     */
    public static final int AD_COUNT = 10;

    /**
     * 第一条广告的位置
     */
    public static final int FIRST_AD_POSITION = 1;

    /**
     * 每间隔4个条目插入一条广告
     */
    public static final int ITEMS_PER_AD = 3;


    public static int titleColor = R.color.ffffff;
    public static int TITLE_BACKGROUND = R.color.b_31;
    public static int TRANSPARENCY = R.color.TRANSPARENCY;

    public static int IC_BACK = R.mipmap.ic_back;

    public static void setIcBack(int icBack) {
        IC_BACK = icBack;
    }

    public static void setTitleBackground(int titleBackground) {
        TITLE_BACKGROUND = titleBackground;
    }

    /**
     * 设置 title  属性
     * @param mTitleColor        title 字体颜色  例  R.color.a33
     * @param titleBackground   title  背景颜色 例  R.color.a33
     * @param icBack             返回键 图片  例  R.mipmap.ic_back
     */
    public static void setTitleColor(int mTitleColor, int titleBackground, int icBack) {
        IC_BACK = icBack;
        TITLE_BACKGROUND = titleBackground;
        titleColor = mTitleColor;
    }

    /**
     * 初始化标题颜色值
     *
     * @param titleColor 标题颜色
     */
    public static void setTitleColor(int titleColor) {
        contents.titleColor = titleColor;
    }
}
